#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
int a[10000000];
int main()
{
    freopen("in.txt", "r", stdin);
    //freopen("out.txt", "w", stdout);
    int i=0,j,k;
    while(scanf("%d",&a[i])!=EOF && a[i]) i++;
    sort(a,a+i);
    printf("%d",a[0]);
    j=0;
    while(j<i)
    {
        k=j;
        while(a[k]==a[j] && j<i) j++;
        if(j<i) printf(" %d",a[j]);
    }
    return 0;
}
